package cn.snowheart.dingtalk.robot.starter.properties;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 获取配置文件中的阿里云AMS配置
 *
 * @author lord
 */
@Component
@ConfigurationProperties(prefix = "dingtalk.robot")
public class DingTalkRobotProperties {

    private String prefix;

    private String accessToken;

    private Secret secret;

    public static class Secret {
        private Boolean secretEnabled;
        private String secretToken;

        public Boolean getSecretEnabled() {
            return secretEnabled;
        }

        public void setSecretEnabled(Boolean secretEnabled) {
            this.secretEnabled = secretEnabled;
        }

        public String getSecretToken() {
            return secretToken;
        }

        public void setSecretToken(String secretToken) {
            this.secretToken = secretToken;
        }
    }

    public String getPrefix() {
        return prefix;
    }

    public void setPrefix(String prefix) {
        this.prefix = prefix;
    }

    public String getAccessToken() {
        return accessToken;
    }

    public void setAccessToken(String accessToken) {
        this.accessToken = accessToken;
    }

    public Secret getSecret() {
        return secret;
    }

    public void setSecret(Secret secret) {
        this.secret = secret;
    }
}